<style type="text/css">
    table td .checkbox label{padding-left: 25px}
    table td{vertical-align: top !important}
</style>
<br>
<br>
<br>
<div class="row">
    <div class="col-xs-12 col-md-12">
        <div class="grid simple">
            <div class="grid-body no-border">
                <form id="add-trend-form" action="<?= DOMAIN.'trend/edit/'.$trend['trend_id'] ?>" method="POST" enctype="multipart/form-data"> 
                    <div class="row">
                        <h4>标题 *</h4>
                        <div class="row form-row">
                            <div class="col-xs-4 col-md-4">
                                <input type="text" value="<?= $trend['title'] ?>" name="title" class="form-control" placeholder="最少1个字最多20个字">
                            </div> 
                        </div>
                        <br>
                        <br>
                        <h4>文章封面 *（最好为正方形图片）</h4>
                            <img width="200px" height="200px" src="<?= FRONTEND_DATA_DOMAIN.'trend/'.$trend['cover_img'] ?>" />
                        <input type="file" name="img" /> 
                        <br>
                        <br>

                        <h4>详细介绍 *</h4>
                        <div class="row form-row">
                            <div class="col-xs-12 col-md-12">
                            <script id="desc" name="desc" type="text/plain"><?= $trend['desc'] ?></script>
                            </div> 
                        </div>
                        <br>
                        <br>
                    </div>
                      
                    <div class="form-actions">  
                        <div class="pull-left">
                            <button class="btn btn-success btn-cons" type="submit">
                                <i class="icon-save"></i>&nbsp;保存</button>
                            </button>
                            <button class="btn btn-white btn-cons" type="button" onclick="$.T.reset_form(this)">
                                重置
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        // 编辑器
        var ue = UM.getEditor('desc', {
            'initialFrameWidth' : 850,
        });
    });
</script>